Skip to main content

One post tagged with "git pull"

git pull tag description

View All Tags

Fix git pull - not possible to fast-forward

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

How to Solve "Not Possible to Fast-Forward" with git pull​

The git pull "Not possible to fast-forward" error happens when your local branch and the remote branch have diverged. This means there are new commits on the remote branch that you don't have, and you also have local commits that are not on the remote branch. Git cannot simply move your branch pointer forward (fast-forward) because doing so would lose your local changes.

To fix this, you must explicitly tell Git how to merge the divergent histories. There are two primary solutions: using git pull with rebase or performing a standard git pull followed by a manual merge.